<?php use_helper('Date') ?>
<?php use_helper('Text') ?>
<?php slot('title', "艺海资讯 - ") ?>
<!--导航-->
<div class="menu" id="topmenu">
  <ul>
    <li><?php echo link_to('首页', '@homepage'); ?></li>
    <li><?php echo link_to('艺海简介', '@html_about'); ?></li>
    <li><?php echo link_to('拍卖预告', '@article_category?catid=3'); ?></li>
    <li class="current"><?php echo link_to('艺海资讯', '@article'); ?></li>
    <li><?php echo link_to('精彩照片', '@album'); ?></li>
    <li><?php echo link_to('艺海视频', '@video'); ?></li>
    <li class="clear_bg"><?php echo link_to('业务联系', '@message'); ?></li>
  </ul>
</div>
<!--主内容-->
<div class="sale clearfix">
   <div class="sale_left">
      <div class="sale_title"><span><a href="<?php echo url_for('@article_category?catid='.$latestid) ?>">更多</a></span><h3>艺海动态</h3></div>
      <div class="sale_cont">
         <ul>
		  <?php foreach (@$latest as $article): ?>
          <li><span><?php echo format_date($article->getCreatedAt(), 'yyyy-MM-d') ?></span><a href="<?php echo url_for('article/show?id='.$article->getId()) ?>"><?php echo $article->getTitle(); ?></a></li>
		  <?php endforeach ?>
         </ul>
      </div>
      <div class="sale_title"><span><a href="<?php echo url_for('@article_category?catid='.$newsid) ?>">更多</a></span><h3>拍卖新闻</h3></div>
      <div class="sale_cont">
         <ul>
          <?php foreach (@$news as $article): ?>
          <li><span><?php echo format_date($article->getCreatedAt(), 'yyyy-MM-d') ?></span><a href="<?php echo url_for('article/show?id='.$article->getId()) ?>"><?php echo $article->getTitle(); ?></a></li>
		  <?php endforeach ?>

         </ul>
      </div>
      <div class="sale_title"><span><a href="<?php echo url_for('@article_category?catid='.$loreid) ?>">更多</a></span><h3>拍卖知识</h3></div>
     <div class="sale_cont">
         <ul>
          <?php foreach (@$lores as $article): ?>
          <li><span><?php echo format_date($article->getCreatedAt(), 'yyyy-MM-d') ?></span><a href="<?php echo url_for('article/show?id='.$article->getId()) ?>"><?php echo $article->getTitle(); ?></a></li>
		  <?php endforeach ?>
         </ul>
      </div>
   </div>
   
   <div class="sale_right">
   <?php if($ad): ?>
      <a href="<?php echo $ad->getLink() ?>"><img src="<?php printf(sfConfig::get('app_path_ad_image'), $ad->getImage()) ?>" width="285" height="110" alt="<?php echo $ad->getTitle() ?>" /></a>
   <?php endif?>
      <div class="sale_topics_title"><span><a href="<?php echo url_for('@topic') ?>">更多</a></span><h3>拍卖专题<em> >></em></h3></div>
      <div class="sale_topics_cont">
          <ul><?php foreach ($specials as $special): ?>
             <li><a href="<?php echo url_for('topic/show?id='.$special->getId()) ?>"><?php echo $special->getName() ?></a></li>
			<?php endforeach ?> 
          </ul>
      </div>
   </div>
</div>
